feat: wrapApprove intent wiring (sendMany type + prebuild + shieldParams passthrough) - #9556
Merged
Conversation
Contributor
0xPrabh
marked this pull request as draft
August 25, 2026 07:19
Contributor
Author
Contributor
|
Claude finished @0xPrabh's task —— View job Code Review Complete ✅I've completed a thorough review of the wrapApprove intent wiring implementation. Here's my analysis: Architecture & Implementation ✅The implementation correctly wires
Validation & Security ✅
Test Coverage ✅Comprehensive test suite covering:
Code Quality ✅
Minor Observations
The implementation is well-architected, thoroughly tested, and follows BitGoJS conventions. The approach of flattening wrap parameters onto the intent (similar to defi operations) is consistent and appropriate. CI Status: 2 workflows in progress |
Contributor
|
|
Ticket: CHALO-1340 Co-authored-by: Cursor <cursoragent@cursor.com>
0xPrabh
marked this pull request as ready for review
September 1, 2026 08:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wires
sendMany({ type: 'wrapApprove' | 'wrap', shieldParams })so a wrap intent can reach wallet-platform.Wallet.send()remains a single-payment helper (address+amount). Wrap has no client recipient; WP builds the calldata fromtokenNameandamount. This change:wrapApprove/wrapas TSSprebuildTransactionintent typesshieldParams: { tokenName, amount }throughBuildParams/populateIntenttokenName,amount)wrapinNO_RECIPIENT_TX_TYPES(wrapApprovewas already listed)Issue Number
CHALO-1340
Type of change
How Has This Been Tested?
(from
modules/sdk-core)Also added
bitgowallet unit tests forprebuildTransaction/populateIntent. Those require a full monorepo install (missing@bitgo/sdk-coin-pearlin this local tree).Checklist
Made with Cursor